package me.keiwu.admin.dao;

import me.keiwu.admin.domain.system.SysInviteCode;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

/**
 * Created by kei on 31/10/2017.
 */
public interface SysInviteCodeRepository extends CrudRepository<SysInviteCode, Long> {

    Optional<SysInviteCode> findByCode(String code);

}
